Systems and methods for determining the configuration of electronic connections

ABSTRACT

Systems and methods for determining the configuration of a connection between two devices by measuring an electrical characteristic are provided. Using the measured electrical characteristic, a device is able to select an appropriate communication interface, such as serial, Universal Serial Bus (USB), FireWire, parallel, PS/2, etc., and configure itself appropriately. Systems and methods which determine the physical orientation of a connector with respect to another connector may also be provided alone or in combination with such systems and methods for selecting communication interfaces. The physical orientation of a connector can be determined by measuring an electrical characteristic and a device can then configure itself appropriately. In accordance with the principles of the present invention, device designs can decrease in size and cost as well as simplify operation for the end-user.

CROSS-REFERENCE TO RELATED APPLICATION

This is a continuation of, commonly assigned U.S. patent application Ser. No. 11/650,130, filed Jan. 5, 2007, now U.S. Pat. No. 7,589,536, which is fully incorporated herein by reference.

BACKGROUND OF THE INVENTION

The present invention relates to electronic connections. More particularly, the present invention relates to systems and methods for determining the configuration of electronic connections.

Many devices are capable of communicating with other devices through the use of more than one communication interface. For example, a computer uses different interfaces for communicating with a monitor, a keyboard, and other computers on a network. In the case of a computer, each interface usually has its own, dedicated connector. However in some devices, for example portable electronics, it may be advantageous to have one connector that is capable of communicating using more than one type of interface.

This is particularly true as portable electronic devices become smaller, because the physical size and number of connectors becomes an important factor. The size of connector contacts cannot get much smaller due to manufacturing and power transmission issues. Therefore, engineers try to reduce the number of connectors by incorporating the signals needed for each different interface into a single connector. This typically results in a larger connector with redundant contacts that are only used for certain interfaces.

Thus, it would be advantageous to be able to use individual connector contacts for more than one interface. The more contacts that have multiple functions, the smaller the connector can be. In order for a contact to carry more than one type of signal, a device must be able to identify the interface being used and route the signal appropriately.

Many connectors and their housings are designed so that they can only be coupled in a certain configuration. This design process is commonly referred to as “keying” a connector and can include, for example, using asymmetrical connector shapes. Connectors are typically designed this way so that it is impossible to connect the wrong contacts. This can be especially important when dealing with sensitive electronics that could be damaged by the application of a power supply line to the wrong contact. Often, the design of the connectors prevents them from being coupled in an incorrect orientation.

Coupling these types of connectors can be time-consuming for users. If connectors cannot be mated on the first try, users have to manipulate the connectors until they are correctly orientated with respect to each other. Depending on the keying, there may even be potential for the user to damage the pins of the connector in frustration while trying to force the connectors together. If a connector's pin configuration could be sensed and properly compensated for, connectors could be coupled in more than one orientation, thereby simplifying the process for an end user. Therefore, it is desirable to provide systems and methods for determining a connector's orientation. Further, it is also desirable to combine systems and methods for selecting a communication interface with those for determining a connector's orientation.

Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with some aspects of the present invention as set forth in the remainder of the present application with reference to the drawings.

SUMMARY OF THE INVENTION

Systems and methods for determining the configuration of electronic connections by measuring an electrical characteristic of a connection are provided. Using the measured electrical characteristic, a device is able to select an appropriate communication interface, such as serial, Universal Serial Bus (USB), FireWire, parallel, PS/2, etc. Once the appropriate communication interface has been selected, the device can subsequently configure itself to communicate using the selected interface. In accordance with the principles of the present invention, one connector can facilitate communication using multiple interfaces. This could allow a device with a single connector to communicate with multiple types of devices. This one-connector approach saves both space and money, as well as making the act of mating two connectors easier for the end user.

Systems and methods which determine the physical orientation of a connector may also be provided alone or in combination with such systems and methods for selecting communication interfaces. In accordance with the principles of the present invention, symmetrical connectors with multiple mating configurations can be used. A device can determine the orientation of a connector relative to another connector and properly route the signals from a connector according to the detected orientation. This type of design can save the end user time and frustration when coupling connectors together.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features of the present invention, its nature, and various advantages will be more apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings.

FIG. 1 is a simplified schematic system diagram of an embodiment of a system which can be operated in accordance with the principles of the present invention, wherein a switch is used to mute signals to predetermined locations;

FIG. 2 is a simplified schematic system diagram of an embodiment of a system which can be operated in accordance with the principles of the present invention, wherein one or more signals are generated to indicate the interface;

FIG. 3 is a simplified schematic system diagram of an embodiment of a system which can be operated in accordance with the principles of the present invention, wherein signals are routed to circuits corresponding to each interface;

FIG. 4 is a simplified schematic system diagram of an embodiment of a system which can be operated in accordance with the principles of the present invention, wherein the orientation of a two-wire connector is determined;

FIG. 5 is a simplified schematic system diagram of another embodiment of a system which can be operated in accordance with the principles of the present invention, wherein the orientation of a three-wire connector is determined;

FIG. 6 is a simplified schematic system diagram of an embodiment of a system which can be operated in accordance with the principles of the present invention, wherein the orientation of a four-wire connector is determined;

FIG. 7 is a simplified schematic system diagram of an embodiment of a system which can be operated in accordance with the principles of the present invention, wherein the connector orientation is determined and a communication interface is selected;

FIG. 8 is a simplified diagram of different voltage ranges that could be used to determine physical orientations and select communication interfaces in accordance with the principles of the present invention;

FIG. 9 is a flowchart of a method for selecting communication interfaces in accordance with the principles of the present invention;

FIG. 10 is a flowchart of a method for determining connector orientations in accordance with the principles of the present invention; and

FIG. 11 is a flowchart of a method for determining connector orientations and selecting communication interfaces in accordance with the principles of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Many electronic communication interfaces exist. Devices communicate using, for example, parallel, serial, PS/2, Universal Serial Bus (USB), and FireWire interfaces. Devices which communicate over more than one interface typically have a separate connector for each interface. In order for a connector to facilitate communication using more than one type of interface, a system which selects appropriate communication interfaces can be used.

FIG. 1 includes an embodiment of a system 100 operable to select communication interfaces in accordance with the principles of the present invention. System 100 can include device 110 and device 120. Device 110 can be an electronic device operable to communicate with other electronic devices using an interface. Device 120 can be an electronic device operable to select the communication interface which device 110 is using and then communicate with device 110 using the selected interface. Device 120 can, for example, be operable to communicate using a Universal Serial Bus (USB) interface as well as an RS-232 serial interface.

Devices 110 and 120 can be coupled by, for example, lines 110a and 110b as well as data bus 110c. Line 110a can carry a supply voltage (V_(BUS)). Line 110b can carry a ground (GND) associated with supply voltage 110a. Data bus (DATA) 110c can include one or more lines that carry data to be exchanged between devices 110 and 120. DATA 110c can also include lines which carry transmission information, for example timing and control signals, which is pertinent to the communication interface being utilized. Lines which are part of the coupling between device 110 and 120 can also transmit other signals. Lines 110a, 110b, and 110c can be bound together in a cable or harness that couples devices 110 and 120. The coupling hardware can be a separate piece of equipment which may be detached from devices 110 and 120. Alternatively, the coupling hardware can be part of device 110 or device 120. Device 110 can, for example, plug into a socket on device 120.

Device 120 can include connector 121 to provide a physical connection of lines 110a, 110b, and 110c between device 110 and device 120. Connector 121 can include an electrical contact for each line connecting device 110 with device 120. Connector 121 can be, for example, a socket for receiving a plug. Connector 121 can be shaped to ensure that only devices with a complementary shape can be coupled to device 120. Connector 121 can include a conductive connector shell. The connector shell can be tied to, or replace, ground line 110b or circuit ground of device 120. Connector 121 can include a magnetic element to secure the connection between devices 110 and 120 in such a way that, if the wire running to device 110 is pulled, the connector simply detaches.

Device 120 can include detector 122. Detector 122 can be coupled to one or more of the lines that are part of the connection between devices 110 and 120 (e.g. V_(BUS) 110a, GND 110b, DATA 110c). Detector 122 can be, for example, a distributed circuit, an Application-Specific Integrated Circuit (ASIC), or a Field-Programmable Gate Array (FPGA). Detector 122 can have additional functions, for example signal conditioning or power regulation. Detector 122 does not have to be coupled with every line connected between device 110 and device 120.

Detector 122 can be operable to measure one or more electrical characteristic of the connection between devices 110 and 120. The electrical characteristic measured by detector 122 can include, for example, a resistive, reactive, current, or voltage measurement and can involve one or more contacts. Detector 122 can, for example, measure the voltage of V_(BUS) 110a relative to GND 110b. Alternatively, detector 122 can detect the resistance between a line of DATA bus 110c and GND 110b. In another embodiment, detector 122 can be coupled with the system clock of device 120 and can monitor the behavior of DATA 110c with respect to the system clock. It is contemplated that there are several different characteristics or combinations of characteristics that can be measured by detector 122 in order to select the appropriate communication interface.

In one embodiment, device 110 might be a device that uses a USB interface or a device that uses a low-voltage serial interface. If detector 122 can measure, for example, the voltage of V_(BUS) 110a relative to GND 110b, detector 122 can select if device 110 is using a USB interface or a low-voltage serial interface. Because the USB standard calls for a power supply line with a voltage of 4.35V to 5.25V, a higher voltage would indicate a USB interface and a lower voltage, for example below 3V, would indicate a low-voltage serial interface.

Device 120 can include switches 125a and 125b. The inputs of switch 125a can be coupled with V_(BUS) 110a and GND 110b. The inputs of switch 125b can be coupled with DATA 110c and other lines that are part of the connection between devices 110 and 120. Switches 125a and 125b can be in an open state by default. If switches 125a and 125b are in an open state by default, detector 122 can better measure characteristics of lines 110a-110c without any effects due to circuits in device 120.

From one or more measured characteristic, detector 122 can be operable to select the communication interface being used by device 110. Switches 125a and 125b can be controlled by detector 122 through a configuration signal (CONF) 123. Detector 122 can direct switch 125a to close once detector 122 has selected which communication interface device 110 is using. Detector 122 can direct switch 125b to move to a state corresponding to the selected communication interface. Because switches 125a and 125b are controlled by a signal from detector 122, switches 125a and 125b can also be referred to as relays.

Device 120 can include voltage regulator 126. Voltage regulator 126 can be coupled to the outputs of switch 125a so that when switch 125a is closed, voltage regulator 126 is connected to V_(BUS) 110a and GND 110b. Voltage regulator 126 can, for example, include circuitry operable to charge a battery in device 110 from a power supply in device 120. In another embodiment, voltage regulator 126 can directly couple V_(BUS) 110a with the voltage rail of device 120 and GND 110b with the common ground of device 120.

Device 120 can include processor 127. Processor 127 can be, for example, a microcontroller or an ARM processor. Processor 127 can be coupled with the system clock of device 120. Processor 127 can be capable of communicating over more than one interface. Processor 127 can have different input/output busses 127a and 127b for communicating over different interfaces. Processor 127 can be coupled to the outputs of switch 125b. The first outputs of switch 125b can be coupled to one bus (DATA1) 127a of processor 127 that corresponds to a particular interface. The second outputs of switch 125b can be coupled to a second bus (DATA2) 127b of processor 127 that corresponds to a different interface. Switch 125b can connect DATA 110c with DATA1 127a or DATA2 127b in order to facilitate communication using the detected interface. Processor 127 can proceed to communicate with device 110 using this interface. Processor 127 can also perform other functions which are inherent to device 120. Processor 127 can, for example, access flash memory and process audio signals.

FIG. 2 includes an embodiment of a system 200 operable to select a communication interface in accordance with the principles of the present invention. System 200 can include device 210 and device 220. Device 220 can include a detector 222. From one or more measured characteristic, detector 222 can be operable to select the communication interface being used by device 210. Other characteristics of device 210 can be identified by detector 222. For example, detector 222 can determine the charge-level of a battery within device 210.

Detector 222 can generate an interface select signal (INT_SEL) 224 which can indicate the interface that corresponds with the measured characteristic. INT_SEL 224 can include one or more lines and can transmit other information about device 210. For example, INT_SEL 224 can also transmit a low power wanting or a device identification number.

Device 220 can include switch 225. Switch 225 can toggle V_(BUS) 210a, GND 210b, DATA 210c, and other lines that are part of the connection between devices 210 and 220 between an open and closed state. Switch 225 can be in an open state by default. Switch 225 can be controlled by detector 222 through an enable signal (EN) 223. Detector 222 can direct switch 225 to close once detector 222 has selected which communication interface device 210 is using.

Device 220 can include a voltage regulator 226. Voltage regulator 226 can be coupled to switch 225 so that, when switch 225 is in a closed position, V_(BUS) 210a and GND 210b can be connected to voltage regulator 226.

Device 220 can include processor 227. Processor 227 can be coupled with the system clock of device 220. Processor 227 can be coupled to switch 225 so that when the switch is closed DATA 210c is connected to a communication bus (DATA) 227b of processor 227. Processor 227 can monitor INT_SEL 224 to see what communication interface device 210 uses and configure itself or other circuitry accordingly. Processor 227 can configure itself by loading a set of instructions that correspond to a communication interface used by device 210.

DATA bus 227b of processor 227 can be designed so that each different interface uses all of the lines that make up DATA bus 227b. This design allows for efficient use of the input/output pins on processor 227. In one embodiment, device 210 might be a device that uses a USB interface or a device that uses a three-wire serial interface. According to the present standard, USB communications require four lines: a power supply line, a ground line, and two data lines. The current three-wire serial (RS-232) standard requires three lines: transmit data, receive data, and ground. A power supply line can also be included with a three-wire serial connection to allow the devices to share power. With an additional power supply line, the USB connection and the serial connection can both include four wires. In this case, no lines of DATA bus 227b would go unused regardless of the interface. In other embodiments, one interface could use less lines than another interface and some lines of DATA bus 227b could go unused for certain interfaces.

It is contemplated that processor 227 can reconfigure elements of device 220 not only in order to use a communication interface but also for the processing of data associated with that interface. For example, if Interface X is typically used to communicate with a microphone (not shown) then processor 227 can configure circuitry to communicate using Interface X and to further process voice data. In one embodiment, processor 227 can reprogram an FPGA in device 220 according to data from INT_SEL 224.

FIG. 3 includes another embodiment of a system 300 operable to select a communication interface in accordance with the principles of the present invention. System 300 can include device 310 and device 320. Device 320 can include detector 322, switch 325, input multiplexer (MUX1) 328a, interface controllers 329a-329c, output multiplexer (MUX2) 328b, and processor 327. From one or more measured characteristics, detector 322 can be operable to select the communication interface being used by device 310. Once an appropriate communication interface is selected, multiplexers 328a and 328b can route DATA 310c through one of the interface controllers 329a-329c in order to facilitate communication between device 310 and device 320. Interface controllers 329a-329c can be circuits operable to coordinate communication between device 310 and circuitry in device 320 (e.g. processor 327, etc.). Interface controllers 329a-329c can be integrated into one or more ASICs. It is also contemplated that more than three interface controllers can be used if needed.

The input of MUX1 328a can be coupled to DATA 310c and other lines that are part of the connection between devices 310 and 320. MUX1 328a can be controlled by detector 322 through EN 323 and INT_SEL 324. EN 323 can be coupled to the enable line of MUX1 328a. INT_SEL 324 can be coupled to the select line of MUX1 328a. Each interface controller 329a-329c can be coupled to a different set of MUX1's 328a outputs.

Once detector 322 selects which communication interface device 310 is going to use, detector 322 can direct MUX1 328a to route its input to the corresponding interface controller with INT_SEL 324. It is contemplated that interface controllers 329a-329c can be powered off by default, and the appropriate controller can be turned on by a signal from detector 322. The outputs of interface controllers 329a-329c can be coupled with the inputs of MUX2 328b. INT_SEL 324 can be coupled to the select line of MUX2 328b. INT_SEL 324 can control MUX2 328b in order to connect the outputs from the appropriate controller to a communication bus (DATA) 327a of processor 327. Once connected, the appropriate interface controller can initialize communications with device 310. What this means is that, an interface controller may take certain steps, commonly called a “handshake” procedure, to begin communicating with device 310. These handshake procedures can be different for each type of interface.

Once MUX1 328a, interface controllers 329a-329c, and MUX2 328b are properly configured, detector 322 can use EN 323 to close switch 325 and enable MUX1 328a. In this embodiment, enabling MUX1 328a corresponds to closing switch 225 of the embodiment in FIG. 2. Once MUX1 328a is enabled, DATA 310c can be routed through one of interface controllers 329a-329c according to the selected interface. Each interface controller can be designed to process a different interface and can subsequently transmit that data to processor 327. Interface controllers 329a-329c can be operable to process signals transmitted both to and from processor 327. It is contemplated that in order to facilitate communicating with processor 327, the interface controllers can be connected to the same clock signal as processor 327. This clock signal can be used to coordinate the timing of the communications between the interface controllers 329a-329c and the processor 327.

A person skilled in the art will appreciate that selecting communication interfaces in accordance with the principles of the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration rather than of limitation. For example, a system which routes lines to independent subsystems depending on the selected interface is another embodiment operable to function in accordance with the principles of the present invention.

FIG. 4 includes an embodiment of system 400 operable to determine connector orientation in accordance with the principles of the present invention. System 400 can include device 410 and device 420. Device 410 can include connector 411, and device 420 can include connector 421. Devices 410 and 420 can be coupled by mating connectors 411 and 421. Mating connectors 411 and 421 can connect power supply lines, data busses, and other types of signals between devices 410 and 420. Mating connectors 411 and 421 can include coupling contacts for two or more physical connections between device 410 and device 420 even though only two are shown in FIG. 4. Connectors 411 and 421 can be symmetrical so that connectors 411 and 421 can be mated in two possible different physical orientations.

Legend 490 lists two possible physical connector orientations. In Orientation 1, line X1 421a can be connected to D1 410a and line X2 421b can be connected to line D2 410b. In Orientation 2, line X1 421a can be connected to D2 410b and line X2 421b can be connected to D1 410a. The actual physical orientation of the connectors can be determined by detector 422 in device 420.

Device 420 can include detector 422 which can be coupled to lines 421a and 421b. From one or more measured characteristics, detector 422 can be operable to determine the physical orientation of connector 411 with respect to connector 421. Detector 422 can, for example, measure the voltage of line X1 421a with respect to line X2 421b. In this example, the measured voltage can be used to determine whether connectors 411 and 421 are in a first or second physical orientation with respect to each other. Device 420 can include switch 425. Switch 425 can be operable to exist in one of three states: open, connecting its inputs to a first set of outputs, and connecting its inputs to a second set of outputs. The first outputs can be connected to input/output lines of processor 427 so that X1 421a can be connected to D1 427a and X2 421b can be connected to D2 427b. The second outputs can be connected to processor 427 so that X1 421a can be connected to D2 427b and X2 421b can be connected to D1 427a.

Switch 425 can be coupled with detector 422. Before the physical orientation of connector 411 is determined, switch 425 can be in an open position so that any circuits in device 420 do not affect the measurements made by detector 422. Once the orientation has been determined, detector 422 can signal switch 425 with a configuration signal (CONF) 424. Switch 425 can then connect the lines from device 410 to circuitry in device 420 according to the physical orientation between the connectors. For example, switch 425 can go to a first position which connects X1 421a with D1 427a and X2 421b with D2 427b if Orientation 1 is detected. If Orientation 2 is detected, switch 425 can go to a second position which connects X1 421a with D2 427b and X2 with D1 427a.

FIG. 5 includes an embodiment of system 500 operable to determine the physical connector orientation in accordance with the principles of the present invention. System 500 can include device 510 and device 520. Device 510 can include connector 511, and device 520 can include connector 521. Devices 510 and 520 can be coupled by mating connectors 511 and 521. Mating connectors 511 and 521 can include connecting contacts for three lines between device 510 and device 520. Connectors 511 and 521 can be symmetrical so that connectors 511 and 521 can be connected in two possible orientations. Legend 590 shows two possible physical orientations of connector 511 with respect to 521. If there are an odd number of lines coupled between device 510 and device 520, a middle contact can be connected to the same signal in either connection orientation. For example, X2 521b can be connected to D2 510b regardless of connector orientation. Detector 522 measures one or more electrical characteristic of one or more of lines 521a-521c in order to determined whether connector 511 is in Orientation 1 or Orientation 2.

Once the orientation of connector 511 is determined, detector 522 can use configuration signal (CONF) 524 to trigger switch 525 to connect its outputs to the appropriate inputs of processor 527. In an embodiment where there are an odd number of contacts, a switch coupled with a middle line can have only an open and a closed position.

It is contemplated that connectors 511 and 521 can have a triangular shape enabling three different coupling orientations. In this case, device 520 can have switches capable of routing the lines from connector 521 to the proper lines within device 520. For example, the switches can have four possible positions which include an open position and individual positions for each connector orientation.

FIG. 6 includes an embodiment of system 600 operable to determine connector orientation in accordance with the principles of the present invention. System 600 can include device 610 and device 620. Connectors 611 and 621 can be symmetrical so that two different mating configurations are possible. The connection between device 610 and device 620 can include four lines: a voltage line (V_(BUS)) 610a, a first data line (D1) 610b, a second data line (D2) 610c, and ground line (GND) 610d.

Two signals can be located on opposite contacts of the connection so that a line coming into device 620 is known to be one of those two signals. Legend 690 shows two possible physical orientations of connector 611 with respect to connector 621. For example, X1 621a is V_(BUS) 610a in Orientation 1 and GND 610d in Orientation 2. In this example, there is no possibility that X1 621a is D1 610b or D2 610c. According to this same principle, a pair of lines can be known to contain two signals regardless of the connector orientation. For example, V_(BUS) 610a and GND 610d can be connected to either X1 621a or X4 621d, but not to X2 621b or X3 621c, regardless of connector orientation.

Device 620 can include voltage regulator 626 and processor 627. A pair of lines which include V_(BUS) 610a and GND 610d can be coupled with the inputs of switch 625b. The outputs of switch 625b can be coupled with voltage regulator 626. The pair of lines which include D1 610b and D2 610c can be coupled with the inputs of switch 625a, and the outputs of switch 625a can be coupled with the inputs of processor 627.

Detector 622 can be operable to measure one or more electrical characteristic of one or more of lines 621a-621d. From the one or more measured characteristic, the orientation of connector 611 with respect to connector 621 can be determined. Detector 622 can control switches 625a and 625b using configuration signal (CONF) 624 so that the switches make the proper connections corresponding to the detected orientation. For example, detector 622 can measure the voltage on line X1 621a and can find it to be consistent with the expected voltage of V_(BUS) 610a. In this case, detector 622 can direct switches 625a and 625b to move to a position corresponding to Orientation 1. With switches 625a and 625b in this configuration, line 621a can be routed to V_(BUS) 626a, line 621b can be routed to D1 627a, line 621c can be routed to D2 627b, and line 621d can be routed to GND 626b. Note that by measuring as few as one line which is indicative of the connectors' orientation, detector 622 can determine how to route all of the lines included in the connection.

It is contemplated that connectors 611 and 621 can be designed so that there are more than two possible connector mating orientations. For example, four contacts arranged so that each contact is a corner of a square would facilitate a connector that is capable of four different orientations. In a case where there are more than two possible orientations, it can not be correct to assume that a signal is found in one of two lines. In accordance with the principles of the present invention, switches with a different position for each orientation can be used in that situation.

A person skilled in the art will appreciate that determining connector orientation in accordance with the principles of the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration rather than of limitation. For example, a system which reconfigures a processor to compensate for connector orientation is another embodiment operable to function in accordance with the principles of the present invention.

FIG. 7 includes an embodiment of system 700 operable to determine connector orientations and select communication interfaces in accordance with the principles of the present invention. System 700 can include device 710 and device 720. Connectors 711 and 721 can be symmetrical so that two or more different mating configurations are possible. Legend 790 shows two possible physical orientations of connector 711 with respect to connector 721. Device 720 can be capable of communicating using different interfaces. In this embodiment, there can be a matrix of connector orientations and communication interfaces which define the connection between device 710 and device 720. What this means is that, in this example, two possible communication interfaces can be used in either Orientation 1 or Orientation 2. When determining connector orientation and selecting a communication interface, as in the embodiment shown in FIG. 7, there can be four possible configurations.

Device 720 can include detector 722 which is capable of determining the orientation of connector 711 with respect to connector 721 and selecting the communication interface compatible with device 710. Detector 722 can control switches 725a and 725b using configuration signal (CONF) 724 in order to configure device 720 for the detected connector orientation. Detector 722 can transmit an interface select signal (INT_SEL) 723 to processor 727 that identifies the communication interface used by device 710. Processor 727 can subsequently configure itself or other circuits in device 720 in order to communicate via the detected interface.

It is contemplated that detector 722 can make two different measurements in order to determine the connector orientation and select the appropriate communication interface. For example, detector 722 may include some inputs coupled to connection lines 721a-721d to the left of switches 725a-725b and other inputs connected to lines 727a-727b and 726a-726b to the right of switches 725a-725b. In this embodiment, detector 722 may use one criteria to determine the connector orientation before switches 725a-725b close. Subsequently, detector 722 may use another criteria to select the appropriate communication interface after switches 725a-725b have closed to the proper position which compensates for connector orientation.

A person skilled in the art will appreciate that the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration rather than of limitation. For example, a system which routes signals differently to compensate for both connector orientation and communication interface is another embodiment operable to function in accordance with the principles of the present invention.

FIG. 8 is a simplified diagram 800 of voltage ranges measured by detector 722 and the corresponding interfaces and connector orientations. The measurement represented in diagram 800 is the voltage of line X1 with respect to line X3. Diagram 800 is illustrative of the embodiment where two possible communication interfaces, USB and three-wire serial, are used in combination with two possible connector orientations, but other implementations are possible that will still utilize the principles of the present invention.

The current USB standard calls for a power supply line with a voltage between 4.35V and 5.25V. Therefore range 802, which corresponds to a detected USB interface, extends from 4.0V to 5.5V. Range 804 includes the same range converted to negative voltages because it corresponds to a USB interface when the connectors are coupled in an opposite orientation.

Because the three-wire serial standard does not require a power supply line, the voltage of an optional power supply line can be designed to be different from the voltages of USB power supply lines. For example, the power supply line can be designed to have a voltage of 3.0V. In this embodiment, range 806 can extend from 2.0V to 4.0V and correspond to a detected serial interface. Range 808, which extends from −4.0V to −2.0V, can correspond to the same serial interface but with the connectors coupled in an opposite orientation.

Ranges 810, 812, and 814 can correspond to improperly coupled or unsupported connectors. In other embodiments, additional communication interfaces or connector orientations could correspond to ranges 810, 812, and 814.

FIG. 9 shows a flowchart of process 900 which can be implemented to select appropriate communication interfaces in accordance with the principles of the present invention. At step 910, two devices can be coupled by mating two connectors. This connection can include one or more electrical contacts. At step 920, one of the devices can measure one or more electrical characteristic of the connection. The electrical characteristic can include a resistive, reactive, current, or voltage measurement and can involve one or more contacts. In one embodiment, the measurement can be of the voltage of one contact with respect to another contact. In an alternative embodiment, the measurement can be of the resistance between two contacts.

Step 930 in process 900 depends on the measurement obtained at step 920. If the measurement is within a certain predetermined range, process 900 can continue with step 940. If the measurement is within a different predetermined range, process 900 can continue with step 950. If the measurement is within a third predetermined range, process 900 can continue with step 960. Each different range can correspond to a measurement that would be expected for a different communication interface. The number of different branches of process 900 can be defined by the number of interfaces a device can use to communicate.

In one embodiment, process 900 can repeat step 920 if the measurement does not fall into any of the predetermined ranges (not shown). In another embodiment, process 900 can resolve that same situation by prompting a user (not shown). The user prompt could, for example, request that the user check the connection or allow the user to select the interface type.

At step 940, 950 or 960, the device which performed the measurement can begin to use a predetermined communication interface which corresponds to the value of the measured characteristic. In order to use the selected interface, the device can load a corresponding set of instructions onto a processor. In an alternative embodiment, the device can route the signals to the corresponding circuits or ICs for each interface.

FIG. 10 shows a flowchart of process 1000 which can be implemented to determine connector orientations in accordance with the principles of the present invention. At step 1010, two devices can be coupled by mating two connectors. The connectors used can be designed so that they can fit together in more than one physical orientation. At step 1020, one of the devices can measure an electrical characteristic of the connection.

At step 1030, process 1000 can proceed differently depending on the value of the measured characteristic. If the measured characteristic is within a predetermined range, process 1000 can proceed with step 1040. At step 1040, a device can route the connected lines to paths corresponding to Range A. If the measured characteristic is within a second range, process 1000 can proceed with step 1050. At step 1050, the connected lines can be routed to paths corresponding to Range B. The ranges can be selected so as to differentiate between possible connector orientations. For example, a device can measure the voltage of a line that is expected to be either a power supply line or ground depending on the physical orientation of the connectors. In this example, two possible voltage ranges can be separated at a value that is in between the expected supply voltage and ground.

FIG. 11 shows a flowchart of process 1100 which can be implemented to determine connector orientations and select appropriate communication interfaces in accordance with the principles of the present invention. At step 1110, two devices can be coupled by mating two connectors. The connectors used can be designed so that they can fit together in more than one physical orientation. At step 1120, one of the devices can measure an electrical characteristic of the connection. At step 1130, process 1100 diverges. Depending on the characteristic measured at step 1120, process 1100 can proceed with step 1140 or step 1150. Step 1140 can correspond to routing connection lines in accordance with one connector orientation and step 1150 can correspond to routing connection lines according to another connector orientation. It is contemplated that more than two connector orientations can be used in accordance with the principles of the present invention.

At step 1160 a device can measure one or more electrical characteristic. The measured characteristic can be used to select the communication interface appropriate for the two devices to use when communicating with each other. It is also contemplated that, instead of making a new measurement, the measurement generated at step 1120 can be used to select an appropriate communication interface at step 1170 without departing from the spirit of the present invention. Depending on the range of the measured characteristic, process 1100 can proceed with step 1180 or step 1190. At step 1180, the devices can communicate using Interface X. At step 1190, the devices can communicate using Interface Y. In order to communicate using the appropriate interface, a device can, for example, route the connection lines to the proper circuitry for that interface. Alternatively, a device can load a set of instructions specialized for communicating with the appropriate interface.

Thus it is seen that descriptions of systems and methods for determining connector orientations and selecting communication interfaces are provided. A person skilled in the art will appreciate that the present invention may be practiced by other than the described embodiments, which are presented for purposes of illustration rather than of limitation. 

What is claimed is:
 1. A method for determining the physical orientation of a first connector with respect to a second connector that is capable of coupling with the first connector in more than one physical orientation, the method comprising: physically coupling the first connector with the second connector to connect a plurality of lines through the connectors; electrically coupling a first number of lines of the plurality of lines received through the second connector with detector circuitry, wherein the first number of lines is at least one, but less than all, of the plurality of lines received through the second connector; measuring an electrical characteristic of at least one line in the first number of lines; determining the physical orientation of the first connector with respect to the second connector based on the measured electrical characteristic; and routing, based on the determined physical orientation, all of the lines received through the second connector to internal circuitry.
 2. The method of claim 1, wherein electrically coupling the first number of lines comprises electrically coupling the first number of lines with only the detector circuitry.
 3. The method of claim 1, wherein the first number of lines is at least two of the plurality of lines received through the second connector.
 4. The method of claim 1, wherein the plurality of lines comprises an odd number of lines and the routing comprises routing one of the lines received through the second connector to the internal circuitry in a particular configuration regardless of the determined physical orientation.
 5. The method of claim 1, wherein: the plurality of lines comprises a data line; the plurality of lines comprises a power line; the internal circuitry comprises a processor and a voltage regulator; and the routing comprises: routing the data line to the processor; and routing the power line to the voltage regulator.
 6. A method for determining the physical orientation of a first connector with respect to a second connector that is capable of coupling with the first connector in more than one physical orientation, the method comprising: opening switch circuitry that is electrically coupled with the second connector; electrically coupling a first line received through the second connector with detector circuitry, wherein the first line is one of a plurality of lines received from the first connector; measuring an electrical characteristic of the first line; determining the physical orientation of the first connector with respect to the second connector based on the measured electrical characteristic; and configuring, based on the determined physical orientation, the switch circuitry to route the plurality of lines to internal circuitry.
 7. The method of claim 6, further comprising: physically coupling the first connector with the second connector, wherein the plurality of lines is received when the first connector couples with the second connector.
 8. The method of claim 6, wherein electrically coupling the first line comprises electrically coupling the first line with only the detector circuitry.
 9. The method of claim 6, further comprising: electrically coupling the plurality of lines with the detector circuitry when electrically coupling the first line.
 10. The method of claim 6, wherein the plurality of lines comprises an odd number of lines and the configuring comprises configuring the switch circuitry to route one of the plurality of lines to the internal circuitry in a particular configuration regardless of the determined physical orientation.
 11. The method of claim 6, wherein the plurality of lines comprises a data line; the plurality of lines comprises a power line; the internal circuitry comprises a processor and a voltage regulator; and the routing comprises: routing the data line to the processor; and routing the power line to the voltage regulator.
 12. An apparatus comprising: a connector that couples the apparatus with another device; a plurality of contacts disposed within the connector and that physically connects lines between the apparatus and the other device; detector circuitry that: measures an electrical characteristic of at least one contact of the plurality of contacts; and generates a configuration signal based on the measured electrical characteristic; and switch circuitry electrically coupled with the detector circuitry and the at least one contact and that: disconnects the at least one contact from all circuitry except the detector circuitry; and connects the at least one contact to circuitry other than the detector circuitry in one of a plurality of configurations based on the configuration signal generated by the detector circuitry.
 13. The apparatus of claim 12, further comprising: a processor electrically coupled with the switch circuitry, wherein the switch circuitry connects the at least one contact to the processor in one of a plurality of configurations based on a configuration signal generated by the detector circuitry.
 14. The apparatus of claim 12, further comprising: a voltage regulator electrically coupled with the switch circuitry, wherein the switch circuitry connects the at least one contact to the voltage regulator in one of a plurality of configurations based on a configuration signal generated by the detector circuitry.
 15. The apparatus of claim 12, wherein the switch circuitry connects all of the plurality of contacts to circuitry other than the detector circuitry in one of a plurality of configurations based on the configuration signal generated by the detector circuitry.
 16. The apparatus of claim 12, wherein the plurality of contacts comprises an odd number of contacts and the switch circuitry connects one of the plurality of contacts to circuitry other than the detector circuitry in a particular configuration regardless of the measured electrical characteristic.
 17. An apparatus comprising: a connector that couples the apparatus with another device; a plurality of contacts disposed within the connector and that physically connects lines between the apparatus and another device; detector circuitry that measures an electrical characteristic of a first contact of the plurality of contacts; switch circuitry electrically coupled with the first contact and that: disconnects the first contact from all circuitry except the detector circuitry; and connects a second contact of the plurality of contacts to internal circuitry in one of at least two configurations; and control circuitry electrically coupled with the detector circuitry and the switch circuitry and that interfaces the detector circuitry with the switch circuitry.
 18. The apparatus of claim 17, wherein: the switch circuitry disconnects the first contact from all circuitry except the detector circuitry; the detector circuitry determines the physical orientation of the connector based on a measured electrical characteristic of the first contact; and the control circuitry instructs the switch circuitry to connect the second contact to the internal circuitry in an appropriate configuration.
 19. The apparatus of claim 17, further comprising: internal circuitry electrically coupled with the switch circuitry, wherein the internal circuitry comprises a processor.
 20. The apparatus of claim 17, further comprising: internal circuitry electrically coupled with the switch circuitry, wherein the internal circuitry comprises a voltage regulator.
 21. The apparatus of claim 17, wherein the switch circuitry connects all of the plurality of contacts to internal circuitry in one of at least two configurations.
 22. The apparatus of claim 17, wherein an odd number of contacts are disposed within the connector and the switch circuitry connects one of the contacts to the internal circuitry in a particular configuration regardless of the measured electrical characteristic.
 23. A method for selecting a serial communication interface in an electronic device that includes a first connector and determining the physical orientation of the first connector with respect to a second connector that is capable of coupling with the first connector in more than one physical orientation, the method comprising: in response to the first connector being coupled with the second connector to connect a plurality of lines through the connectors, electrically coupling a first number of lines of the plurality of lines received through the second connector with detector circuitry in the electronic device, wherein the first number of lines is at least one, but less than all, of the plurality of lines received through the second connector; monitoring a contact in the first connector that electrically couples a line in the first number of lines to the detector circuitry; selecting a serial communication interface and determining the physical orientation of the first connector with respect to the second connector based on data received over the monitored contact; and routing, based on the selected serial communication interface and determined physical orientation, lines in the plurality of lines received through the second connector to internal circuitry disposed in the electronic device, wherein the determined orientation is one of a first orientation or a second orientation 180 degrees rotated from the first orientation.
 24. The method of claim 23 wherein one of the selected serial communication interfaces includes a USB interface.
 25. The method of claim 23 wherein the plurality of lines comprise at least one data line and one power line.
 26. The method of claim 23 wherein a middle line from the first connector is routed to the same internal circuitry coupled to the second connector and has the same function regardless of the orientation.
 27. The method of claim 23 wherein the first connector and the second connector are symmetrical.
 28. The method of claim 23 wherein, for a selected serial communication interface, a pair of lines in the plurality of lines carry the same two signals regardless of the orientation.
 29. The method of claim 23 wherein a first number of lines comprises two lines.
 30. The method of claim 23 wherein the routing comprises operating a plurality of switches to connect the plurality of lines to internal circuitry.
 31. The method of claim 30 wherein each of the plurality of switches has more than one possible state.
 32. The method of claim 30 wherein the plurality of switches are in an open state prior to determining the physical orientation.
 33. The method of claim 30 wherein the routing step routes all of the plurality of lines in the plurality of lines received through the second connector to internal circuitry disposed in the electronic device based on the selected serial communication interface and determined physical orientation.
 34. The method of claim 30 wherein the data received over the monitored contact is a measured electrical characteristic.
 35. The method of claim 30 wherein the step configuring switch circuitry to route the plurality of lines routes all of the lines received through the second connector to internal circuitry disposed in the electronic device.
 36. A method for determining the physical orientation of a first connector included in an electronic device with respect to a second connector that is capable of coupling with the first connector in more than one physical orientation, the method comprising: electrically isolating a plurality of contacts in the first connector from internal circuitry within the electronic device; electrically coupling a first line received through the second connector with detector circuitry disposed within the electronic device via a first contact from the plurality of contacts in the first connector, wherein the first line is one of a plurality of lines received from the second connector; monitoring the first contact to determine the physical orientation of the first connector with respect to the second connector; and configuring, based on the determined physical orientation, switch circuitry to route at least some of the plurality of lines to the internal circuitry, wherein the more than one physical orientation comprises a first orientation and a second orientation 180 degrees rotated from the first orientation.
 37. The method of claim 36 wherein monitoring the first contact further comprises detecting an expected characteristic.
 38. The method of claim 36 wherein the plurality of lines comprise at least one data line and one power line.
 39. The method of claim 36 further comprising: in addition to monitoring the first contact, monitoring a second contact from the plurality of contacts in the first connector to determine the orientation.
 40. The method of claim 36 wherein the first connector and the second connector are symmetrical.
 41. The method of claim 36 wherein at least one of the plurality of lines is associated with a same function regardless of the determined physical orientation.
 42. The method of claim 34 wherein a pair of contacts from the plurality of contacts in the first connector is associated with the same two functions regardless of the determined physical orientation.
 43. An electronic apparatus comprising: a connector configured to couple the electronic apparatus with another device; a plurality of contacts disposed within the connector, the plurality of contacts configured to physically connect lines between the electronic apparatus and the other device; detector circuitry that monitors a first contact from the plurality of contacts to identify a serial communication interface used by the other device; and switch circuitry electrically coupled to second and third contacts in the plurality of contacts, the switch circuitry configured to connect the second and third contacts to circuitry other than the detector circuitry in one of a plurality of configurations according to the serial communication interface identified by the detector circuitry; wherein the detector circuitry is configured to determine orientation of another connector of the other device coupled to the connector based on monitoring the at least one contact.
 44. The apparatus of claim 43 wherein the detector circuitry is configured to generate a configuration signal based on the determined orientation.
 45. The apparatus of claim 43 wherein the connector and the other connector are symmetrical and the determined orientation is one of: a first orientation or a second orientation rotated 180 degrees from the first orientation.
 46. The apparatus of claim 43 wherein the switch circuitry is configured to: when a first serial communication interface is identified by the detector circuitry, connect the second and third contacts to circuitry associated with the first serial communication interface; and when a second serial communication interface is identified by the detector circuitry, connect the second and third contacts to circuitry associated with the second serial communication interface.
 47. The apparatus of claim 43 wherein at least one of the plurality of contacts is associated with a same function regardless of the determined orientation.
 48. The apparatus of claim 43 wherein a pair of lines coupled to the second and third contacts is associated with same two signals regardless of the determined orientation.
 49. The apparatus of claim 43 wherein the lines comprise at least one data line and at least one power line.
 50. An electronic apparatus comprising: a first connector configured to couple the electronic apparatus with another device; a plurality of contacts disposed within the first connector, the plurality of contacts configured to physically connect lines between the electronic apparatus and the other device; detector circuitry that monitors a first contact from the plurality of contacts; switch circuitry electrically coupled with the first contact and configured to connect a second contact from the plurality of contacts to internal circuitry disposed in the electronic apparatus in one of at least two configurations; and control circuitry electrically coupled with the detector circuitry and the switch circuitry to operate the switch circuitry in response to the detector circuitry, wherein the first connector is operable to be connected to a second connector in one of two physical orientations.
 51. The apparatus of claim 50 wherein the two physical orientations comprise a first orientation and a second orientation 180 degrees rotated from the first orientation.
 52. The apparatus of claim 51 wherein the switch circuitry is configured to: connect the second contact from the plurality of contacts to internal circuitry in a first configuration in the first orientation; and connect the second contact from the plurality of contacts to internal circuitry in a second configuration in the second orientation.
 53. The apparatus of claim 50 wherein the detector circuitry is configured to determine the physical orientation of the second connector with respect to the first connector based on monitoring of the first contact.
 54. An electronic apparatus comprising: a first connector having a plurality of contacts configured to physically connect lines between the electronic apparatus and another electronic device via a second connector; and electrical circuitry coupled to the first connector and configured to: monitor a first contact from the plurality of contacts; determine, based on monitoring the first contact, whether the electronic apparatus will communicate via second and third contacts from the plurality of contacts using at least either a first or a second serial communication interface; and when it is determined that communication via the second and third contacts will be according to the first serial communication interface, connect the second and third contacts to circuitry associated with the first serial communication interface, and when it is determined that communication via the second and third contacts will be according to the second serial communication interface connect the second and third contacts to circuitry associated with the second serial communication interface, wherein the second connector is operable to mate with the first connector in one of a first orientation or a second orientation 180 degrees rotated from the first orientation.
 55. The electronic apparatus of claim 54 wherein the electrical circuitry is further configured to: determine, based on monitoring the first contact, whether the electronic apparatus will communicate via the second and third contacts using a third serial communication interface; and when it is determined that communication via the second and third contacts will be according to the third serial communication interface, connect the second and third contacts to circuitry associated with the third serial communication interface.
 56. The electronic apparatus of claim 54 wherein the electrical circuitry is further configured to determine the orientation of the second connector with respect to the first connector.
 57. The electronic apparatus of claim 54 wherein at least two lines between the apparatus and the other electronic device are associated with a same function regardless of the orientation.
 58. The electronic apparatus of claim 54 wherein the lines comprise at least one data line and a power line.
 59. The electronic apparatus of claim 54 wherein the first connector and the second connector are symmetrical.
 60. The electronic apparatus of claim 54 wherein the first connector is a receptacle connector.
 61. The electronic apparatus of claim 54 wherein the second connector is a plug connector.
 62. The electronic apparatus of claim 54 wherein the second connector comprises a conductive shell that is coupled to ground.
 63. A method for enabling communication between a first electronic device and a second electronic device where the first electronic device includes a first connector having a first plurality of contacts, the second electronic device includes a second connector having a second plurality of contacts, and the second electronic device includes circuitry configured to use a first serial interface via first and second contacts in the second plurality of contacts, the method comprising: electrically isolating the first plurality of contacts in the first connector from internal circuitry within the first electronic device; in response to the first and second connectors being physically coupled together, electrically coupling at least one contact in the first plurality of contacts with circuitry disposed within the first electronic device to obtain information from the second electronic device; determining, based on the obtained information, a serial communication interface used by the second electronic device over the first and second contacts of the second connector; and electrically connecting circuitry associated with the first communication interface to first and second contacts in the first connector that are coupled to the first and second contacts in the second connector to enable communication between the first and second electronic devices using the first serial communication interface, wherein the first connector and second connector can be physically coupled together in a first orientation and a second orientation, and wherein the determining step determines the orientation of the first connector with respect to the second connector.
 64. The method for enabling communication between a first electronic device and a second electronic device set forth in claim 63 wherein switching circuitry within the first electronic device coupled to the first and second contacts in the first connector is in an open state prior to the first and second connectors being physically coupled together and subsequently set to a state that connects the first and second contacts in the first connector to circuitry for the first serial communication interface during the electrically connecting step.
 65. The method for enabling communication between a first electronic device and a second electronic device set forth in claim 64 wherein the switching circuitry can be operated to connect the first and second contacts in the first connector to one of: (i) circuitry within the first electronic device associated with the first serial communication interface, (ii) circuitry within the first electronic device associated with a second serial communication interface different than the first serial communication interface, and (iii) circuitry within the first electronic device associated with a third serial communication interface different than the first and second serial communication interfaces.
 66. The method for enabling communication between a first electronic device and a second electronic device set forth in claim 64 wherein the obtained information is a measured electrical characteristic.
 67. An electronic apparatus comprising: a first connector having a plurality of contacts including at least first and second contacts, the first connector being configured to physically connect lines between the electronic apparatus and a second connector associated with a second electronic device that can communicate via a serial communication interface over first and second contacts of the second connector that align with the first and second contacts of the first connector when the first and second connectors are coupled together; first serial communication circuitry configured to allow the electronic apparatus to communicate with another device using a first serial communication interface; second serial communication circuitry configured to allow the electronic apparatus to communicate with another device using a second serial communication interface different than the first serial communication interface; circuitry coupled to the first connector and configured to: (i) electrically isolate the plurality of contacts in the first connector from the first serial communication circuitry and from the second serial communication circuitry; (ii) in response to the second connector being physically coupled to the first connector, electrically couple at least one contact in the plurality of contacts with additional circuitry disposed within the electronic apparatus to obtain information from the second electronic device; (iii) determine, based on the obtained information, a serial communication interface used by the second electronic device over the first and second contacts of the second connector; and (iv) if the second electronic device uses the first serial communication interface over the first and second contacts of the second connector, electrically connect the first serial communication circuitry to the first and second data contacts in the plurality of contacts in the first connector to enable communication between the electronic apparatus and the second electronic device using the first serial communication interface, wherein the first connector and second connector can be physically coupled together in a first orientation and a second orientation, and wherein the circuitry coupled to the first connector is further configured to determine the orientation of the first connector with respect to the second connector.
 68. The electronic apparatus set forth in claim 67 wherein the circuitry coupled to the first connector is further configured to, if the second electronic device uses the second serial communication interface over the first and second contacts of the second connector, electrically connect the second serial communication circuitry to the first and second contacts in the plurality of contacts in the first connector to enable communication between the electronic apparatus and the second electronic device using the second serial communication interface.
 69. The electronic apparatus set forth in claim 68 wherein the circuitry coupled to the first connector includes switching circuitry coupled to the first and second contacts in the first connector that can be switched between a first state in which the first and second contacts in the first connector are in an open state, a second state in which the first and second contacts in the first connector are coupled to the first serial communication circuitry, and a third state in which the first and second contacts in the first connector are coupled to the second serial communication circuitry.
 70. The electronic apparatus set forth in claim 69 further comprising: third serial communication circuitry configured to allow the electronic apparatus to communicate with another device using a third serial communication interface different than the first and second serial communication interfaces; and wherein the switching circuitry coupled to the first and second contacts in the first connector can be further switched to a fourth state in which the first and second contacts in the first connector are coupled to the third serial communication circuitry.
 71. The electronic apparatus set forth in claim 67 wherein the obtained information is a measured electrical characteristic.
 72. The electronic apparatus set forth in claim 67 wherein the second orientation is rotated 180 degrees from the first orientation.
 73. The electronic apparatus set forth in claim 67 wherein the plurality of contacts in the first connector further includes a third contact for power. 